package com.tianji.promotion.service;

import com.tianji.promotion.domain.po.Coupon;
import com.tianji.promotion.domain.po.ExchangeCode;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 兑换码 服务类
 * </p>
 *
 * @author liuchun
 * @since 2024-10-23
 */
public interface IExchangeCodeService extends IService<ExchangeCode> {

    //异步生成兑换码
    void asyncCreateExchangeCode(Coupon c);

    //检查兑换码是否被兑换
    boolean checkIsExchanged(long serialNum, boolean b);
}
